import myaxios from '../MyAxios'
import BASEURL from '../BaseUrl'
const { BMDURL } = BASEURL

const spotApi = {
  list(params) {
    return myaxios.get(BMDURL + '/spot/get/list', params)
  },
  add(params) {
    return myaxios.post(BMDURL + '/spot/add', params)
  },
  queryByNameLike(params) {
    return myaxios.post(BMDURL + '/spot/get/name', params)
  },
  delete(params) {
    return myaxios.delete(BMDURL + `/spot/del/${params}`)
  },
  update(params) {
    return myaxios.put(BMDURL + '/spot/set', params)
  },
  mohu(params) {
    return myaxios.post(BMDURL + '/spot/get/mohu', params)
  }
}
export default spotApi
